package cn.edu.gsau.info.models;

public class Code {
    //规则：0结尾表示成功，1结尾表示失败
    //规则：1表示保存，2表示删除，3表示更新，4表示查询
    public static final Integer SAVE_OK = 10010;
    public static final Integer DELETE_OK = 20010;
    public static final Integer UPDATE_OK = 30010;
    public static final Integer GET_OK = 40010;
    public static final Integer SAVE_ERR = 10011;
    public static final Integer DELETE_ERR = 20011;
    public static final Integer UPDATE_ERR = 30011;
    public static final Integer GET_ERR = 40011;

    //业务异常
    public static final Integer BUSINESS_EXCEPTION = 50010;
    //服务器异常
    public static final Integer SYSTEM_EXCEPTION = 50020;
    //其他异常
    public static final Integer OTHER_EXCEPTION = 50030;
}
